import req from './http'
export const getTabList = data => {
	let path = 'api/test'
	return req.post(path, data)
}

export const getHomeData = data => {
	let path = '/v1/home'
	return req.get(path, data)
}
export const publishTask = data => {
	let path = '/v1/task'
	return req.post(path, data)
}
export const reg = data => {
	let path = '/v1/reg'
	return req.post(path, data)
}
export const login = data => {
	let path = '/v1/login'
	return req.post(path, data)
}
export const getTaskDetail = id => {
	let path = '/v1/task/' + id
	return req.get(path)
}
export const signUp = id => {
	let path = '/v1/task/'+id+'/enter'
	return req.post(path)
}
export const getMyOrder = data => {
	let path = '/v1/my/task/item'
	return req.get(path, data)
}
